import Cookies from 'js-cookie'
import i18n from './index'

// 设置语言
export function setLanguage(lang) {
  i18n.locale = lang
  Cookies.set('language', lang)
  return lang
}
